﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/PortalParts/Portal.Master" CodeBehind="BranchIndexOld.aspx.cs" Inherits="ZHDJ.Web.Portal.BranchIndex" %>

<%@ Import Namespace="ZHDJ.Core.Util" %>

<%@ Register Src="~/PortalParts/ImageAuto.ascx" TagPrefix="uc1" TagName="ImageAuto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Resource/themes/default/css/index-slidelf.css" rel="stylesheet" />
    <script src="../Resource/js/jquery/slidelf.js"></script>
    <script src="../Resource/js/jquery/jquery.textSlider.js"></script>
    <script src="../Resource/js/carousel.js"></script>
    <script type="text/javascript">
        var finishload = function () {
            $("#imagediv").fadeIn(1000);
        }
        var rankTabf = function () {
            $("#rankTitle").each(function (i, n) {
                var $tab = $("a", n);
                $tab.each(function (j, m) {
                    var showID = $(m).attr("tab");
                    $(m).hover(function () {
                        $("#rank .listtabcontent").hide();
                        $tab.removeClass('lovetab2');
                        $(m).addClass("lovetab2");
                        $("#" + showID).show();

                    });
                });
            });
        }

        var volunteerTab = function () {
            $("#volunteerTitle").each(function (i, n) {
                var $tab = $("a", n);
                $tab.each(function (j, m) {
                    var showID = $(m).attr("tab");
                    $(m).hover(function () {
                        $("#volunteer .listtabcontent").hide();
                        $tab.removeClass('lovetab2');
                        $(m).addClass("lovetab2");
                        $("#" + showID).show();

                        if (showID == "volunteerActivitie") {
                            $("#volunteer_more").attr("href", "VolunteerActivitie/VolunteerActiviteMore.aspx?module=VolunteerActivitie&category=Call&BranchID=" + querystring("BranchID"));
                        }
                        else {
                            $("#volunteer_more").attr("href", "VolunteerActivitie/VolunteerActiviteMore.aspx?module=VolunteerActivitie&category=Quotation&BranchID=" + querystring("BranchID"));
                        }
                    });
                });
            });
        }

        var informationfreeingTab = function () {
            $("#informationfreeingTitle").each(function (i, n) {
                var $tab = $("a", n);
                $tab.each(function (j, m) {
                    var showID = $(m).attr("tab");
                    $(m).hover(function () {
                        $("#informationfreeing .listtabcontent").hide();
                        $tab.removeClass('lovetab2');
                        $(m).addClass("lovetab2");
                        $("#" + showID).show();

                        if (showID == "PartyPublic") {
                            $("#informationfreeing_more").attr("href", "InformationFreeing/InformationFreeingMorePage.aspx?module=BranchHomeArticle&category=PartyPublic&BranchID=" + querystring("BranchID"));
                        }
                        else if (showID == "VillagePublic") {
                            $("#informationfreeing_more").attr("href", "InformationFreeing/InformationFreeingMorePage.aspx?module=BranchHomeArticle&category=VillagePublic&BranchID=" + querystring("BranchID"));
                        }
                        else {
                            $("#informationfreeing_more").attr("href", "InformationFreeing/InformationFreeingMorePage.aspx?module=BranchHomeArticle&category=FinancePublic&BranchID=" + querystring("BranchID"));
                        }
                    });
                });
            });
        }

        var membervoiceTab = function () {
            $("#membervoiceTitle").each(function (i, n) {
                var $tab = $("a", n);
                $tab.each(function (j, m) {
                    var showID = $(m).attr("tab");
                    $(m).hover(function () {
                        $("#membervoice .listtabcontent").hide();
                        $tab.removeClass('lovetab2');
                        $(m).addClass("lovetab2");
                        $("#" + showID).show();

                        if (showID == "experience") {
                            $("#membervoice_more").attr("href", "PartySound/PartySoundMore.aspx?Category=Experience&BranchID=" + querystring("BranchID"));
                        }
                        else {
                            $("#membervoice_more").attr("href", "PartySound/PartySoundMore.aspx?Category=ThoughtReport&BranchID=" + querystring("BranchID"));
                        }
                    });
                });
            });
        }
        $(function () {
            //党费
            $("#scrollDiv").textSlider({ line: 1, speed: 500, timer: 2000 });
            rankTabf();
            volunteerTab();
            informationfreeingTab();
            membervoiceTab();

            $("#branchtrends_more").attr("href", "BranchActivitie/BranchActivitieMorePage.aspx?module=BranchTrends&category=BranchActivitie&BranchID=" + querystring("BranchID"));
            $("#photowall_more").attr("href", "PhotoWall/PhotoWallMorePage.aspx?module=PhotoWall&category=PhotoWall&BranchID=" + querystring("BranchID"));
            $("#calendar_more").attr("href", "MeetingLecture/MeetingCalendar.aspx?module=Calendar&category=Calendar&BranchID=" + querystring("BranchID"));
        });

        function querystring(key) {
            var re = new RegExp('(?:\\?|&)' + key + '=(.*?)(?=&|$)', 'gi');
            var r = [], m;
            while ((m = re.exec(document.location.search)) != null) r.push(m[1]);
            return r.toString();
        }
    </script>
    <style>
        .headphone {
            width: 114px;
            height: 140px;
        }

        .headphone-title {
            width: 114px;
            white-space: normal;
            word-break: break-all;
        }

        .phone {
            width: 134px;
            height: 118px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="clearfix">
        <div class="bindex_left">
            <div class=" bindex_small_part bindex_small">
                <div class="bindex_branchinfo bindex_small_part_title bindex_small">
                    <div class=" bindex_small_part_title_span">
                        <span>组织信息</span>
                    </div>
                    <div>
                        <div style="min-height: 225px">
                            <div id="imagediv" class="bindex_branchinfo_logo" style="display: none;">
                                <uc1:ImageAuto runat="server" ID="ImageAuto"
                                    ImgUrl='/Resource/themes/default/images/Party/Party-Emblem.jpg'
                                    Para="{ width:250, height: 200, method: 'resize', fitDirection:'center center',onFinish:finishload }" />
                            </div>
                            <p class="areap3" style="text-align: center; margin-bottom: 10px">
                                <asp:Literal runat="server" ID="litBranchName"></asp:Literal>
                            </p>
                        </div>

                        <div class="bindex_branchinfo_score bindex_small" style="position: relative">
                            <p class=""><a href="BranchHome/BranchLeader.aspx?BranchID=<%=BranchID %>" target="_blank">班子成员</a></p>
                            <p><a href="BranchHome/BranchMember.aspx?BranchID=<%=BranchID %>" target="_blank">组织成员</a></p>
                        </div>
                        <div class="bindex_branchinfo_score bindex_small" style="position: relative">
                            <p class="">积分：<span><asp:Literal runat="server" ID="litScore"></asp:Literal></span></p>
                            <p>排名：<span><asp:Literal runat="server" ID="litRank"></asp:Literal></span></p>
                        </div>
                        <div class="bindex_branchinfo_score bindex_small" style="position: relative">

                            <p>党员数量：<span><asp:Literal runat="server" ID="litMemberCount"></asp:Literal></span></p>
                            <p class=""><a></a></p>
                        </div>
                        <div class="bindex_small bindex_branhinfo_detail"><a href="BranchHome/BranchInfo.aspx?BranchID=<%=BranchID %>">组织详细信息>></a></div>
                    </div>
                </div>

            </div>
        </div>
        <div class="bindex_right">
            <div class=" bindex_big_part">
                <div class="bindex_branchnew bindex_big_part_title">
                    <div class="bindex_big_part_title_span">
                        <span>组织动态</span>
                        <a id="branchtrends_more" class="bindex_more">更多>></a>
                    </div>
                    <div style="padding: 0 8px;">
                        <div style="float: left; width: 260px;">
                            <div class="u-carousel" style="width: 250px; height: 178px; margin-top: 6px;">
                                <div class="u-carouselimg">
                                    <asp:Repeater ID="rpBranchActivitieImg" runat="server">
                                        <ItemTemplate>
                                            <div>
                                                <a href='<%#"BranchActivitie/BranchActivitieDetail.aspx?ID="+Eval("ID") %>' target="_blank">
                                                    <img style="width: 250px; height: 178px" src='<%# ZHDJ.WebPage.UpFileBusiness.GetFileUrl(Eval("ImageID").ToString()) %>' />
                                                </a>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                                <ul style="top: 155px;">
                                    <asp:Repeater ID="rpBranchActivitieLi" runat="server">
                                        <ItemTemplate>
                                            <li>
                                                <input type="hidden" value='<%#Eval("ID") %>' /></li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                                <div class="bg_picture" style="width: 250px; height: 30px; line-height: 30px;">
                                </div>
                                <div class="textp">
                                    <asp:Repeater ID="rpBranchActivitieContent" runat="server">
                                        <ItemTemplate>
                                            <p style="top: 155px;"><%#Eval("Title").ToString().Length > 10?Eval("Title").ToString().Substring(0,10)+"...":Eval("Title") %></p>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                            </div>
                        </div>
                        <div style="float: left; width: 370px">
                            <dl class="part_dll">
                                <asp:Repeater ID="rpBranchActivitie" runat="server">
                                    <ItemTemplate>
                                        <dd>
                                            <a target="_blank" title='<%#Eval("Title") %>' href='<%#"BranchActivitie/BranchActivitieDetail.aspx?ID="+Eval("ID") %>'><%#Eval("Title").ToString().Length > 23?Eval("Title").ToString().Substring(0,23)+"...":Eval("Title") %></a>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bindex_right_part_small bindex_small_part">
                <div class="bindex_1 bindex_small_part_title">
                    <div class=" bindex_small_part_title_span">
                        <span>志愿服务</span><a target="_blank" id="volunteer_more" href="javascript:;" class="bindex_more">更多>></a>
                    </div>
                    <div id="volunteer" style="padding-left: 6px; padding-right: 6px;">
                        <div id="volunteerTitle" class="listtab clearfix">
                            <a tab="volunteerActivitie" class="lovetab2">志愿活动召集</a> <a tab="volunteerQuotation">志愿者心语</a>
                        </div>
                        <div class="listtabcontent" id="volunteerActivitie">
                            <dl class="part_dll">
                                <asp:Repeater ID="rpVolunteerActivity" runat="server">
                                    <ItemTemplate>
                                        <dd>
                                            <a target="_blank" href='<%#"VolunteerActivitie/VolunteerActiviteDetail.aspx?ID="+Eval("ID") %>'><span style="float: left;" class='<%#Eval("IsEnd").ToString()== "1" ? "spanb":"spanr" %>'>[<%#Eval("IsEndName") %>]</span><%#Eval("Title").ToString().Length>15?Eval("Title").ToString().Substring(0,15)+"...":Eval("Title").ToString() %></a>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                        <div class="listtabcontent" id="volunteerQuotation" style="display: none;">
                            <dl class="part_dll">
                                <asp:Repeater ID="rpQuotation" runat="server">
                                    <ItemTemplate>
                                        <dd>
                                            <a target="_blank" href='<%#"VolunteerActivitie/VolunteerQuotationDetail.aspx?ID="+Eval("ID") %>'><%#Eval("Content") %></a>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bindex_right_part_small bindex_small_part bindex_right_part_small_sec">
                <div class="bindex_1 bindex_small_part_title">
                    <div class=" bindex_small_part_title_span">
                        <span>党费缴纳</span>
                    </div>
                    <div>
                        <div id="scrollDiv" class="scrollTes">
                            <div class="scrollText">
                                <dl class="part_dll">
                                    <asp:Repeater runat="server" ID="rpMemberCost">
                                        <ItemTemplate>
                                            <dd><a href="javascript:void();" style="cursor: default"><%# Eval("UserName")+Convert.ToDateTime(Eval("CreateTime")).ToString("yyyy-MM-dd")+"缴纳"+Eval("Year")+"年"+Eval("Month")+"月党费" %>  </a></dd>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="clearfix">
        <div class="bindex_left">
            <div class=" bindex_small_part">
                <div class="bindex_branchinfo bindex_small_part_title">
                    <div class=" bindex_small_part_title_span">
                        <span>积分排名</span> <a href="#" class="bindex_more">更多>></a>
                    </div>
                    <div id="rank" style="padding-left: 6px; padding-right: 6px;">
                        <div id="rankTitle" class="listtab clearfix">
                            <a tab="personalrank" class="lovetab2">个人排名</a> <a tab="brankrank" runat="server" id="BranchScore">组织排名</a>
                        </div>
                        <div class="listtabcontent" id="personalrank">
                            <dl class="rank_dld">
                                <dt><span class="spans1">名次</span><span class="spans1">姓名</span><span class="spans2" style="text-align: center;">组织</span><span class="spans1">积分</span></dt>
                                <asp:Repeater runat="server" ID="rpRankMember">
                                    <ItemTemplate>
                                        <dd>
                                            <span class="spans1">
                                                <b id='<%# Convert.ToInt32(Eval("Rank"))<4?"bb":"rank"+Container.ItemIndex %>'><%# Eval("Rank") %></b>
                                            </span>
                                            <span class="spansna" title='<%# Eval("UserName") %>'><%# StringHelper.SubstringShort(5,Eval("UserName").ToString(),3) %></span>
                                            <span class="spansba" title='<%# Eval("BranchName") %>'><%# StringHelper.SubstringShort(11, Eval("BranchName").ToString(),9) %></span>
                                            <span class="spans1"><%# Eval("Score") %></span>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                        <div class="listtabcontent" id="brankrank" style="display: none">
                            <dl class="rank_dld">
                                <dt><span class="spans1">名次</span><span class="spans3" style="text-align: center;">组织</span><span class="spans1">积分</span></dt>
                                <asp:Repeater runat="server" ID="rpRankBranch">
                                    <ItemTemplate>
                                        <dd>
                                            <span class="spans1">
                                                <b id='<%# Convert.ToInt32(Eval("Rank"))<4?"bb":"rank"+Container.ItemIndex %>'><%# Eval("Rank") %></b>
                                            </span>
                                            <span class="spans3"><%# Eval("BranchName") %></span>
                                            <span class="spans1"><%# Eval("Score") %></span>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="bindex_right">
            <div class="bindex_right_part_small bindex_small_part">
                <div class="bindex_1 bindex_small_part_title" style="min-height: 260px">
                    <div class=" bindex_small_part_title_span">
                        <span>党员之声</span><a id="membervoice_more" href="javascript:;" target="_blank" class="bindex_more">更多>></a>
                    </div>
                    <div id="membervoice" style="padding-left: 6px; padding-right: 6px;">
                        <div id="membervoiceTitle" class="listtab clearfix">
                            <a tab="experience" class="lovetab2">心得体会</a><a tab="thoughtReport">思想汇报</a>
                        </div>
                        <div class="listtabcontent" id="experience">
                            <dl class="part_dll">
                                <asp:Repeater ID="rpExperience" runat="server">
                                    <ItemTemplate>
                                        <dd>
                                            <a target="_blank" href='<%#"PartySound/PartySoundDetail.aspx?Category=Diary&id="+Eval("ID") %>'><%#Eval("Title")%></a>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                        <div class="listtabcontent" id="thoughtReport" style="display: none">
                            <dl class="part_dll">
                                <asp:Repeater ID="rpThoughtReport" runat="server">
                                    <ItemTemplate>
                                        <dd>
                                            <a target="_blank" href='<%#"PartySound/PartySoundDetail.aspx?Category=ThoughtReport&id="+Eval("ID") %>'><%#Eval("Title")%></a>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bindex_right_part_small bindex_small_part bindex_right_part_small_sec">
                <div class="bindex_1 bindex_small_part_title" style="min-height: 260px">
                    <div class=" bindex_small_part_title_span">
                        <span>信息公开</span><a id="informationfreeing_more" target="_blank" href="javascript:;" class="bindex_more">更多>></a>
                    </div>
                    <div id="informationfreeing" style="padding-left: 6px; padding-right: 6px;">
                        <div id="informationfreeingTitle" class="listtab clearfix">
                            <a tab="PartyPublic" class="lovetab2">党务公开</a><a tab="VillagePublic">村务公开</a><a tab="FinancePublic">财务公开</a>
                        </div>
                        <div class="listtabcontent" id="PartyPublic">
                            <dl class="part_dll">
                                <asp:Repeater ID="rpPartyPublic" runat="server">
                                    <ItemTemplate>
                                        <dd>
                                            <a target="_blank" href='<%#"InformationFreeing/InformationFreeingDetail.aspx?ID="+Eval("ID") %>'><%#Eval("Title")%></a>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                        <div class="listtabcontent" id="VillagePublic" style="display: none">
                            <dl class="part_dll">
                                <asp:Repeater ID="rpVillagePublic" runat="server">
                                    <ItemTemplate>
                                        <dd>
                                            <a target="_blank" href='<%#"InformationFreeing/InformationFreeingDetail.aspx?ID="+Eval("ID") %>'><%#Eval("Title")%></a>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                        <div class="listtabcontent" id="FinancePublic" style="display: none">
                            <dl class="part_dll">
                                <asp:Repeater ID="rpFinancePublic" runat="server">
                                    <ItemTemplate>
                                        <dd>
                                            <a target="_blank" href='<%#"InformationFreeing/InformationFreeingDetail.aspx?ID="+Eval("ID") %>'><%#Eval("Title")%></a>
                                        </dd>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </dl>
                        </div>
                    </div>
                </div>
            </div>
            <div class=" bindex_big_part">
                <div class="bindex_branchnew bindex_big_part_title" style="min-height: 200px">
                    <div class="bindex_big_part_title_span">
                        <span>留影墙</span>
                        <a id="photowall_more" href="#" target="_blank" class="bindex_more">更多>></a>
                    </div>
                    <div style="margin-top: 20px;">
                        <div class="fl-pic">
                            <div class="left-arrow">
                                <a class="u-prev" style="margin-top: 50px"></a>
                            </div>
                            <ul id="">
                                <asp:Repeater ID="rptHonorHall" runat="server">
                                    <ItemTemplate>
                                        <li><a target="_blank" href="PhotoWall/PhotoWallPage.aspx?PhotoWallID=<%#Eval("ID")%>" title='<%#Eval("Describe") %>'>
                                            <img src="../<%#Eval("Url")%>" class="phone" /></a></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                            <div class="right-arrow">
                                <a class="u-next" style="margin-top: 50px"></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="clearfix">
        <div class="bindex_left">
            <div class=" bindex_small_part">
                <div class="bindex_1 bindex_small_part_title">
                    <div class=" bindex_small_part_title_span">
                        <span>三会一课</span> <a id="calendar_more" href="#" target="_blank" class="bindex_more">更多>></a>
                    </div>
                    <div style="padding-left: 6px; padding-right: 6px;">
                        <iframe frameborder="0" src="/Portal/Other/CalendarPage.aspx?BranchID=<%=BranchID %>" style="width: 100%; height: 185px"></iframe>
                    </div>
                </div>

            </div>
        </div>
        <div class="bindex_right">
            <div class=" bindex_big_part">
                <div class="bindex_branchnew bindex_big_part_title">
                    <div class="bindex_big_part_title_span">
                        <span>先进典型</span>
                        <a href="MassLine/HonourMore.aspx" target="_blank" class="bindex_more">更多>></a>
                    </div>

                    <div style="margin-top: 28px;">
                        <div class="fl-pic">
                            <div class="left-arrow">
                                <a class="u-prev" style="margin-top: 50px"></a>
                            </div>
                            <ul id="">
                                <asp:Repeater ID="rpMassHonour" runat="server">
                                    <ItemTemplate>
                                        <li><a target="_blank" href="MassLine/HonourDetail.aspx?id=<%#Eval("ID")%>" title='<%#Eval("Title") %>'>
                                            <img src="<%# ZHDJ.WebPage.UpFileBusiness.GetFileUrl(Eval("ImageID").ToString()) %>" class="headphone" /></a></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                            <div class="right-arrow">
                                <a class="u-next" style="margin-top: 50px"></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        $(function () {
            $(".fl-pic").each(function (i, n) {
                $(n).slidelf({
                    "prev": "left-arrow",
                    "next": "right-arrow",
                    "speed": 2000,
                    "min": 8
                });
            });

        });
    </script>
</asp:Content>
